<?php defined('IN_YUNYECMS') or exit('No permission.'); ?>    <!-- Footer -->
       <footer class="footer">
        <div class="pt-50 pb-30 foot-bg">
            <div class="container">
                <div class="row">
                    <!-- Footer widget -->
                       <?php $tag_parse = core::load_class('tag_parse');$data=$tag_parse->cat_tag(array('foot'=>'1','level'=>'2'));?>
                         <?php if(is_array($data)): $i = -1; $__DATA__ = $data;if(count($__DATA__)==0 )  echo "" ;foreach($__DATA__ as $key=>$v): $mod = ($i % 2 );++$i;?>
						 <?php if($key==2){ $footcsswidth='footwidth2';} else{ $footcsswidth='footwidth';}?>
						<div class="col-lg-2 col-sm-6 <?php echo $footcsswidth;?> ">
						    <div class="footer-widget" data-animate="fadeInUp" data-delay=".3">
							 <h3 class="footer-title"><a href="<?php echo $v["url"] ;?>"><?php echo $v["title"] ;?></a></h3>
							  <?php if(!empty($v["child"])): ?>  	
							 <div class="menu-wrap">
                                <ul class="menu">
							 <?php if(is_array($v['child'])): $k2 = -1; $__DATA__ = $v['child'];if(count($__DATA__)==0 )  echo "" ;foreach($__DATA__ as $key=>$v): $mod = ($k2 % 2 );++$k2;?>
								<li><a href="<?php echo $v["url"] ;?>"> <?php echo $v["title"] ;?></a></li>
								 </volist>
								<?php if(count($v["child"])>=12) echo '<li><a href="'.$v[url].'"><i class="fa fa-plus"></i> 查看更多 >> </a> </li>';?>
							 <?php  endforeach;  endif; ?>
                            </div>
							 <?php endif; ?>  
						    </div>
						      </div>
						  <?php  endforeach;  endif; ?>
					              
					 <div class="col-lg-2 col-sm-6 footwidthlast">
                        <div class="footer-widget" data-animate="fadeInUp">
                            <h3 class="footer-title">聯繫我們</h3>
                            <div class="menu-wrap">
                            <ul class="menu">
								<li>電話：<a href="tel:<?php echo $lang["tel"] ;?>"><?php echo $lang["tel"] ;?></a></li>
								<li>郵箱：<a href="mailto:<?php echo $lang["mail"] ;?>"><?php echo $lang["mail"] ;?></a></li>
								<li>手機/微信：<a href="tel:<?php echo $lang["mobile"] ;?>"><?php echo $lang["mobile"] ;?></a></li>
								<li>地址：<?php echo $lang["address"] ;?></li>
                            </ul>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-2 col-sm-6">
                        <div class="footer-widget" data-animate="fadeInUp" data-delay=".3">
                            <h3 class="footer-title text-center">關注我們</h3>
                              <div style="width: 100%; line-height: 2.5;" class="text-center">
                       	        <img src="<?php echo $lang["qrcode"] ;?>" alt="" style="width:80%;"/>
                       	        <br/>
                       	         官方微信
                       	      </div>
                        </div>
                    </div>
                    <!-- End of Footer widget -->
                </div>
            </div>
        </div>
        <div class="bottom-footer foot-bg">
            <div class="container">
                <div class="row align-items-center">
                    <div class="col-lg-8 order-last order-lg-first">
                        <!--Start footer text -->
                        <div class="copyright text-center text-lg-left">
                           <?php echo $lang["copyright"] ;?>
                        </div>
                        <!-- End Footer text -->
                    </div>
                    <div class="col-lg-4 order-first order-lg-last" style="text-align: right;">
                           <select onchange="javascript:if(this.value!='')window.open(this.value)" style="border: #ccc 1px solid; background: none; width: 80%; color:#aaaaaa; line-height: 45px; padding: 5px;"><option selected="" value="" style="color:#000;">友情鏈接</option>
                            	  <?php $home_parse = core::load_class('tag_parse');$dataparm =array('mode'=>'links');$data=$home_parse->home_tag(array('mode'=>'links'));?>
									 <?php if(is_array($data)): $nh = -1; $__DATA__ = $data;if(count($__DATA__)==0 )  echo "" ;foreach($__DATA__ as $key=>$vh): $mod = ($nh % 2 );++$nh;?>
										<?php $tag_parse = core::load_class('tag_parse');$data="";$data=$tag_parse->list_tag(array('catid'=>$vh['catid'],'num'=>$vh['num']));?>
										 <?php if(is_array($data)): $i = -1; $__DATA__ = $data;if(count($__DATA__)==0 )  echo "" ;foreach($__DATA__ as $key=>$v): $mod = ($i % 2 );++$i;?>
                                     <option value="<?php echo $v["url"] ;?>" style="color:#000;"> <?php echo $v["title"] ;?></option> 
										<?php  endforeach;  endif; ?>
										  		
									 <?php  endforeach;  endif; ?>
								 
                           </select>
                    </div>
                </div>
            </div>
        </div>
    </footer>
    <!-- End of Footer -->
     <!-- Back to top -->
    <div class="back-to-top">
        <a href="#" class="d-flex align-items-center justify-content-center">
            <img src="<?php echo TPL;?>static/images/up-arrow.svg" alt="" class="svg">
        </a>
    </div>
  <?php $addons_parse = core::load_class('tag_parse');$dataparm =array('name'=>'online');$data=$addons_parse->addons_tag(array('name'=>'online'));?>
   <?php if(!$data) { ?>
      <?php if($cfg['iskefu']==1) { ?>
			<link rel="stylesheet" type="text/css" href="<?php echo YUNYECMS_PUBLIC;?>plugins/online/static/css/style.css" />
			<div class="side">
				<ul>
					<li id="qqonline" class="qqonline"><a href="http://wpa.qq.com/msgrd?v=3&amp;uin=<?php echo $lang["qq"] ;?>&amp;site=qq&amp;menu=yes"><i class="bgs1"></i>QQ諮詢</a></li>
					<li class="sideewm"><i class="bgs3"></i>官方微信
						<div class="ewBox son" style="background-image:url(<?php echo $lang["qrcode"] ;?>);"></div>
					</li>
					<li class="sideetel"><i class="bgs4"></i>聯繫電話
						
						<div class="telBox son">
							<dd class="bgs1"><span>座機</span><?php echo $lang["tel"] ;?></dd>
							<dd class="bgs2"><span>手機</span><?php echo $lang["mobile"] ;?></dd>
							<dd class="bgs3">工作日：9：00～18：00</dd>
						</div>
					</li>
					<li id="yuyueshow"><a href="<?php echo url('customform',array('catid'=>12));?>"><i class="bgs5"></i>留言</a></li>
					<li class="sidetop" onClick="goTop()"><i class="bgs6"></i>返回顶部</li>
				</ul>
			</div>
			<script>
				function goTop() {
					$('html,body').animate({
						scrollTop: 0
					}, 500)
				}
			</script>
			<?php } ?>
     <?php } ?>